<?php

namespace eu\freeplace\page;

/**
 * Encapsulate all functions to create a complete HTML BODY Block.
 *
 * @author Elmar Dott
 * @version 1.0
 */
class Body {

    /** Class Name */
    const CLASS_NAME = "Body";

    /**
     * Default Constructor
     * @global Logger $logger
     */
    public function __construct() {
        global $logger;
        $logger->log("Calling instance of ".self::CLASS_NAME."()", "NOTICE");
    }

    ### ########################################################################

    //Include the ContentLoaderFactory
    public function fetchContent($contentID) {
        global $logger;
        $logger->log(self::CLASS_NAME."().fetchContent(".$contentID.")", "DEBUG");

        $content =
        "<h1>PAGE[default] TEMPLATE</h1>
         <ul>
            <li>A @HEADER@</li>
            <li>B @CONTENT@</li>
            <li>C @FOOTER@</li>
         </ul>";

        return $content;
    }

}//CLASS

?>
